<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp" %>
<select id="${param.id }" name="${param.id}" class="${param.classStyle }" >
</select>
<script type="text/javascript">
	$("#${param.id }").ready(function(){
		$.ajax({
			type:'POST',
			url:'${ctx }/code/findAllDmByDmlx.htm?dmlx=${param.dmlx}',//号牌种类
			dataType:'json',
			success:function(data, textStatus, jqXHR){
				$.each(data,function(i,node){
					if(i==0){
						$("#${param.id }").append("<option selected value=\""+node.dm+"\">"+node.dmms+"</option>");
					}else{
						$("#${param.id }").append("<option value=\""+node.dm+"\">"+node.dmms+"</option>");
					}
				});
			},
			error:function(XMLHttpRequest, textStatus, errorThrown){
				alert("查询数据失败！");
			}
		});
	});
	$("#${param.id }").bind("change",function(){
		<c:if test="${not empty param.clickFun }">
			${param.clickFun }();
		</c:if>
		<c:if test="${ empty param.clickFun }">
		</c:if>
	});	
</script>